package cn.sangyy.gift.mapper;

import cn.sangyy.gift.domain.Spu;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * spu表 Mapper 接口
 * </p>
 *
 * @author sangyangyang
 * @since 2023-04-04
 */
@Repository
public interface SpuMapper extends BaseMapper<Spu> {

    int getByIds(List<Long> ids);

    void updateStateOnSale(List<Long> ids);

    int getByIdsOnSale(List<Long> ids);

    void updateStateOffSale(List<Long> ids);
}
